home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / GNU / sed_1_17.lha / sed-1.17 / amiga_dice.diffs next >
Encoding:
Text File  |  1993-06-01  |  2.5 KB  |  95 lines

  1. *** regex.c.orig    Tue Jun 01 03:05:24 1993
  2. --- regex.c    Tue Jun 01 03:08:59 1993
  3. ***************
  4. *** 48,55 ****
  5.   
  6.   /* We used to test for `BSTRING' here, but only GCC and Emacs define
  7.      `BSTRING', as far as I know, and neither of them use this code.  */
  8. ! #if HAVE_STRING_H || STDC_HEADERS
  9.   #include <string.h>
  10.   #ifndef bcmp
  11.   #define bcmp(s1, s2, n)    memcmp ((s1), (s2), (n))
  12.   #endif
  13. --- 48,56 ----
  14.   
  15.   /* We used to test for `BSTRING' here, but only GCC and Emacs define
  16.      `BSTRING', as far as I know, and neither of them use this code.  */
  17. ! #if defined(HAVE_STRING_H) || defined(STDC_HEADERS)
  18.   #include <string.h>
  19. + #ifndef HAVE_BSTRING
  20.   #ifndef bcmp
  21.   #define bcmp(s1, s2, n) memcmp ((s1), (s2), (n))
  22.   #endif
  23. ***************
  24. *** 59,64 ****
  25. --- 60,66 ----
  26.   #ifndef bzero
  27.   #define bzero(s, n)     memset ((s), 0, (n))
  28.   #endif
  29. + #endif
  30.   #else
  31.   #include <strings.h>
  32.   #endif
  33. ***************
  34. *** 192,198 ****
  35.   #ifdef __GNUC__
  36.   #define alloca __builtin_alloca
  37.   #else /* not __GNUC__ */
  38. ! #if HAVE_ALLOCA_H
  39.   #include <alloca.h>
  40.   #else /* not __GNUC__ or HAVE_ALLOCA_H */
  41.   #ifndef _AIX /* Already did AIX, up at the top.  */
  42. --- 194,200 ----
  43.   #ifdef __GNUC__
  44.   #define alloca __builtin_alloca
  45.   #else /* not __GNUC__ */
  46. ! #ifdef HAVE_ALLOCA_H
  47.   #include <alloca.h>
  48.   #else /* not __GNUC__ or HAVE_ALLOCA_H */
  49.   #ifndef _AIX /* Already did AIX, up at the top.  */
  50. *** sed.c.orig    Tue Jun 01 03:05:23 1993
  51. --- sed.c    Tue Jun 01 03:14:02 1993
  52. ***************
  53. *** 68,74 ****
  54. --- 68,83 ----
  55.   #endif
  56.   #endif
  57.   
  58. + #ifdef AMIGA
  59. + const char amiga_version[] = "\0$VER: GNU sed version 1.17";
  60. + const char *version_string = &amiga_version[7];
  61. + #if defined(_DCC) && defined(DCC_DYNAMIC_STACKS)
  62. + long _stack_fudge = 4*1024;
  63. + long _stack_chunk = 32*1024;
  64. + #endif
  65. + #else
  66.   char *version_string = "GNU sed version 1.17";
  67. + #endif
  68.   
  69.   /* Struct vector is used to describe a chunk of a compiled sed program.
  70.    * There is one vector for the main program, and one for each { } pair,
  71. ***************
  72. *** 1177,1182 ****
  73. --- 1186,1192 ----
  74.         if (input_file == 0)
  75.           {
  76.             extern int errno;
  77. + #ifndef __STDC__
  78.             extern char *sys_errlist[];
  79.             extern int sys_nerr;
  80.   
  81. ***************
  82. *** 1184,1189 ****
  83. --- 1194,1204 ----
  84.   
  85.             ptr = ((errno >= 0 && errno < sys_nerr)
  86.                    ? sys_errlist[errno] : "Unknown error code");
  87. + #else
  88. +           char *ptr;
  89. +           ptr = strerror(errno);
  90. + #endif
  91.             bad_input++;
  92.             fprintf (stderr, "%s: can't read %s: %s\n", myname, name, ptr);
  93.             return;
  94.